﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace _RobotInspection.Entities
{
    ///<summary>
    ///点检任务表
    ///</summary>
    public partial class inspection_tasks
    {
           public inspection_tasks(){

            this.task_status =Convert.ToByte("0");
            this.created_at =DateTime.Now;
            this.updated_at =DateTime.Now;

           }
        /// <summary>
        /// Desc:任务ID
        /// Default:
        /// Nullable:False
        /// </summary>   
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long id {get;set;}

           /// <summary>
           /// Desc:计划ID
           /// Default:
           /// Nullable:True
           /// </summary>           
           public long? plan_id {get;set;}

           /// <summary>
           /// Desc:任务日期
           /// Default:
           /// Nullable:False
           /// </summary>           
           public DateTime task_date {get;set;}

           /// <summary>
           /// Desc:设备ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           public long equipment_id {get;set;}

           /// <summary>
           /// Desc:指派用户ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           public long assigned_user_id {get;set;}

           /// <summary>
           /// Desc:任务状态：0-待执行，1-执行中，2-已完成，3-已超期
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public byte? task_status {get;set;}

           /// <summary>
           /// Desc:开始执行时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? start_time {get;set;}

           /// <summary>
           /// Desc:完成时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? end_time {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? created_at {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? updated_at {get;set;}

    }
}
